#ifndef CONTROLLER_H
#define CONTROLLER_H
#include "TestCamera.h"
#include <QObject>
#include <QImage>
class Controller : public QObject
{
    Q_OBJECT
private:
    int captureNum;
    TestCamera c;
private slots:
    void imgLoad(const QString &Text);
    void imgSave(const QString &Text);
    void openCamera(const QString &Text);
    void clearNum(const QString &Text);
    void capture(const QString &Text);
    void closeCamera(const QString &Text);
public:
    static QImage *Img;
    explicit Controller(QObject *parent = nullptr);
signals:
    void sendPath(QString);
    void sendError(QString);
    void sendImg(QImage *);
};

#endif // CONTROLLER_H
